package com.yh.csx.crm.core.enums;

import java.math.BigDecimal;

/**
 * ApprovalRuleEnum class
 * 规则：00：不适用，01：小于等于200万，02：大于200万
 * @author huyalin
 * @date 2019/2/23
 */
public enum ApprovalRuleEnum {
    NOT_APPLICABLE("00", "不适用", new BigDecimal(0)),
    LESS_THAN_OR_EQUAL("01", "小于等于200万", new BigDecimal(2000000)),
    GREATER_THAN("02", "大于200万", new BigDecimal(2000000));

    private String code;
    private String name;
    private BigDecimal base;

    ApprovalRuleEnum(String code, String name, BigDecimal base) {
        this.code = code;
        this.name = name;
        this.base = base;
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public BigDecimal getBase() {
        return base;
    }}
